﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/BodyMasterPage.Master"
   CodeBehind="wfProcPlaniMnt.aspx.cs" Inherits="RH.wfProcPlaniMnt" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajax" %>
<%@ Import Namespace="Texfina.Common.Mg" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
   <link href="../Styles/jquery-ui.custom.css" rel="stylesheet" type="text/css" />
   <script type="text/javascript">
      window.onload = function () {


         var menuTable = document.getElementById('<%=mnuToolbar.ClientID %>');
         var menuLinks = menuTable.getElementsByTagName("a");
         if (menuLinks != null) {
            switch (menuLinks.length) {
               case 2:
                  menuLinks[0].onclick = function () { return validateEditForm('_BTTSAVE') }
                  break;

               case 3:
                  menuLinks[0].onclick = function () { return validateEditForm('_BTTSAVE') }
                  menuLinks[1].onclick = function () { return validateEditForm('_BTTSAVNEW') }
                  break;
            }
         }

         this.MessageOnPostback();
      }

      function panelOnUpdating() {
         updatePanelAnimationUpdating();
      }

      function panelOnUpdated() {
         ResizeGrid();
         updatePanelAnimationUpdated();
      }
   </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
   <div class="ToolBar">
      <asp:Menu ID="mnuToolbar" runat="server" CssClass="ToolBarControl" Orientation="Horizontal"
         OnMenuItemClick="mnuToolbar_MenuItemClick">
         <Items>
            <asp:MenuItem Text="Guardar" Value="_BTTSAVE" ImageUrl="../Images/Icons/Enabled/SAVE.png">
            </asp:MenuItem>
            <asp:MenuItem Text="Salir" Value="_BTTEXIT" ImageUrl="../Images/Icons/Enabled/BACK.png">
            </asp:MenuItem>
         </Items>
      </asp:Menu>
   </div>
   <asp:UpdatePanel ID="UpdatePanel1" runat="server">
      <ContentTemplate>
         <div class="ToolBar">
            <table width="100%" cellpadding="0" cellspacing="0">
               <tr>
                  <td style=" width:10px;">
                     &nbsp;
                  </td>
                  <td style="width: 100px">
                     Seleccione Planilla:
                  </td>
                  <td>
                     <esd:esdButtonTextBox runat="server" ID="txtidPlanilla" Width="180px"></esd:esdButtonTextBox>
                  </td>
               </tr>
            </table>
         </div>
         <div class="DataHeader">
            <table id="TableDataHeader" cellpadding="0" cellspacing="0">
               <tr>
                  <td colspan="3">
                     &nbsp;
                  </td>
               </tr>
               <tr>
                  <td style="width: 5px">
                     &nbsp;
                  </td>
                  <td>
                     Datos Planilla
                  </td>
                  <td style="width: 5px">
                     &nbsp;
                  </td>
               </tr>
               <tr>
                  <td style="width: 5px">
                     &nbsp;
                  </td>
                  <td>
                     <div style="border: 1px solid #ccc; border-radius: 5px; -moz-border-radius: 5px;
                        -webkit-border-radius: 5px; -ms-border-radius: 5px;">
                        <table width="100%" cellpadding="0" cellspacing="2">
                           <tr>
                              <td colspan="13">
                                 &nbsp;
                              </td>
                           </tr>
                           <tr>
                              <td style="width: 10px;">
                                 &nbsp;
                              </td>
                              <td>
                                 Mes :
                              </td>
                              <td colspan="2">
                                 <esd:esdTextBox ID="txtidMes" runat="server" Width="140px"></esd:esdTextBox> 
                              </td>
                              <td>
                                 &nbsp;
                              </td>
                              <td>
                                 Forma de Pago :
                              </td>
                              <td colspan="2">
                                 <esd:esdTextBox ID="txtidForPago" runat="server" Width="140px"></esd:esdTextBox>
                              </td>
                              <td>
                                 &nbsp;
                              </td>
                              <td>
                                 Moneda:
                              </td>
                              <td colspan="2">
                                 <asp:DropDownList ID="ddlidMoneda" runat="server" Width="140px"></asp:DropDownList>
                              </td>
                              <td style="width: 10px;">
                                 &nbsp;
                              </td>
                           </tr>
                           <tr>
                              <td style="width: 10px;">
                                 &nbsp;
                              </td>
                              <td>
                                 Planilla:
                              </td>
                              <td colspan="2">
                                 <esd:esdTextBox ID="txtdsPlanilla" runat="server" Width="140px"></esd:esdTextBox>
                              </td>
                              <td>
                                 &nbsp;
                              </td>
                              <td>
                                 Nro.Proceso Anual:
                              </td>
                              <td colspan="2">
                                 <esd:esdNumericTextBox NumericType="Integer" runat="server" ID="txtNroProcAnual"
                                    Width="50px">
                                 </esd:esdNumericTextBox>
                              </td>
                              <td>
                                 &nbsp;
                              </td>
                              <td>
                                 Monto Tipo Cambio:
                              </td>
                              <td colspan="2">
                                 <esd:esdNumericTextBox NumericType="Decimal" runat="server" ID="txtMtc" Width="50px"></esd:esdNumericTextBox>
                              </td>
                              <td style="width: 10px;">
                                 &nbsp;
                              </td>
                           </tr>
                           <tr>
                              <td style="width: 10px">
                                 &nbsp;
                              </td>
                              <td>
                                 Fecha Desde:
                              </td>
                              <td colspan="2">
                                 <esd:esdTextBox ID="txtfeDesde" runat="server" Width="100px"></esd:esdTextBox>
                              </td>
                              <td>
                                 &nbsp;
                              </td>
                              <td>
                                 Fecha Hasta:
                              </td>
                              <td colspan="6">
                                 <esd:esdTextBox ID="TxtfeHasta" runat="server" Width="100px"></esd:esdTextBox>
                              </td>
                              <td style="width: 10px">
                                 &nbsp;
                              </td>
                           </tr>
                           <tr>
                              <td colspan="13">
                                 &nbsp;
                              </td>
                           </tr>
                        </table>
                     </div>
                  </td>
                  <td style="width: 5px">
                     &nbsp;
                  </td>
               </tr>
               <tr>
                  <td colspan="3">
                     &nbsp;
                  </td>
               </tr>
            </table>
         </div>
      </ContentTemplate>
   </asp:UpdatePanel>
   <ajax:UpdatePanelAnimationExtender ID="upae" BehaviorID="animation" runat="server"
      TargetControlID="updatePanel1">
      <animations>
        <OnUpdating>
        <Parallel duration="0.5">
            <ScriptAction Script="panelOnUpdating();" />  
        </Parallel>
        </OnUpdating>
        <OnUpdated>
        <Parallel duration="0.5">
            <ScriptAction Script="panelOnUpdated();" /> 
        </Parallel> 
        </OnUpdated>
    </animations>
   </ajax:UpdatePanelAnimationExtender>
   <div id="updateProgressDiv" class="updateProgress" style="display: none">
      <table width="100%">
         <tr>
            <td valign="middle">
               <img src="../Images/Controls/Loading.gif" />
            </td>
            <td valign="middle">
               <span class="updateProgressMessage">Cargando ...</span>
            </td>
         </tr>
      </table>
   </div>
   <asp:HiddenField ID="hdnidPlanilla" runat="server" />
   <asp:HiddenField ID="hdnMsgOPB" runat="server" />
   <asp:HiddenField ID="hdnidConRemu" runat="server" />
   <asp:HiddenField ID="hdnidMes" runat="server" />
   <asp:HiddenField ID="hdnidForPago" runat="server" />
</asp:Content>
